{if !$core->session->isLoggedIn()}{php}die("You must be logged in");{/php}{/if}
{if $smarty.session.userlevel >= $smarty.const.USER_MODERATOR}

{else}
You do not have permission
{/if}